import React from "react";
import { Outlet, useLoaderData } from "react-router-dom";

const Root: React.FC = () => {
  const data = useLoaderData();

  return (
    <>
      <h3>Root:{data as string}</h3>
      <Outlet />
    </>
  );
};
export default Root;
